//
//  CarModel.m
//  ReviewDemo
//
//  Created by 苏沫离 on 2018/3/19.
//  Copyright © 2018年 long. All rights reserved.
//

#import "CarModel.h"

@implementation CarModel

- (BOOL)isEqual:(CarModel *)object
{
    if (self == object) {
        return YES;
    }
    
    if (![object isKindOfClass:[CarModel class]]) {
        return NO;
    }

    if (!object) {
        return NO;
    }
    
    BOOL haveEqualNames = (!self.name && !object.name) || [self.name isEqualToString:object.name];

    return haveEqualNames;
    
}

@end
